﻿//Copyright (c) Microsoft Corporation. All rights reserved.

using Microsoft.ApplicationServer.Caching;
using Microsoft.Ted.Wacel.Cache;

namespace Microsoft.Ted.Wacel.Cache
{
    public class Queue<T>: Base.Queue<T>
    {
        public Queue(string name)
            :this(name, long.MaxValue-1)
        {
        }
        public Queue(string name, long maxLength)
            : base(name, maxLength, 
                new WindowsAzureCacheDataProvider(new DataCache(), name) {Configuration = new WindowsAzureCacheConfiguration()},
                new WindowsAzureCachLockProvider(new DataCache(), name))
        {

        }
    }
}
